package com.transaction.manage.model.dto;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "log_detail")
public class LogDetail implements Serializable {
    @Id
    private Integer id;

    /**
     * 流程日志编码
     */
    @Column(name = "log_code")
    private String logCode;

    private Date utime;

    @Column(name = "msg_detail")
    private String msgDetail;

    private static final long serialVersionUID = 1L;

    public LogDetail() {
    }

    public LogDetail(String logCode) {
        this.logCode = logCode;
    }

    public LogDetail(String logCode, String msgDetail) {
        this.logCode = logCode;
        this.msgDetail = msgDetail;
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取流程日志编码
     *
     * @return log_code - 流程日志编码
     */
    public String getLogCode() {
        return logCode;
    }

    /**
     * 设置流程日志编码
     *
     * @param logCode 流程日志编码
     */
    public void setLogCode(String logCode) {
        this.logCode = logCode;
    }

    /**
     * @return utime
     */
    public Date getUtime() {
        return utime;
    }

    /**
     * @param utime
     */
    public void setUtime(Date utime) {
        this.utime = utime;
    }

    /**
     * @return msg_detail
     */
    public String getMsgDetail() {
        return msgDetail;
    }

    /**
     * @param msgDetail
     */
    public void setMsgDetail(String msgDetail) {
        this.msgDetail = msgDetail;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", logCode=").append(logCode);
        sb.append(", utime=").append(utime);
        sb.append(", msgDetail=").append(msgDetail);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}